<?php

namespace app\model;
use think\Model;

class Common extends Model{

    public function message($code,$msg=[],$data='')
    {
        $msg=[
            'code'=>$code,  
            'msg'=>$msg,
            'data'=>$data,
        ];
        echo json_encode($msg);
    }
    
}